package com.bci.pwtz.mysql.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bci.pwtz.mysql.model.Dybx;
import com.bci.pwtz.mysql.model.Dysydlbhq;

public interface DysydlbhqMapper
{
    int deleteByPrimaryKey(String deviceid);

    int insert(Dysydlbhq record);

    int insertSelective(Dysydlbhq record);

    Dysydlbhq selectByPrimaryKey(String deviceid);

    int updateByPrimaryKeySelective(Dysydlbhq record);

    int updateByPrimaryKey(Dysydlbhq record);

    int deleteById(@Param("deviceid")String deviceid,@Param("lastmodifiedtime")Date time);

    List<Dysydlbhq> selectDeviceList(@Param("name") String name, @Param("companyid") Long companyid, @Param("companyids") String[] companyids, @Param("portalType") int portalType, @Param("medLineCodes") String[] medLineCodes, @Param("lineCode") String lineCode, @Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("benginIndex") int benginIndex, @Param("pageSize") int pageSize);

    int selectDeviceCount(@Param("name") String name, @Param("companyid") Long companyid, @Param("companyids") String[] companyids, @Param("portalType") int portalType, @Param("medLineCodes") String[] medLineCodes, @Param("lineCode") String lineCode, @Param("beginTime") String beginTime, @Param("endTime") String endTime);
    
    List<Dysydlbhq> selectByPreDeviceCode(@Param("predevicecode")String predevicecode);
}